<template>
  <div class="bg-light store-info-item">
    <DefaultInfoItem v-if="!isEdit" :show-judge="showJudge" :form="form" />
    <DefaultEditItem
      v-else
      ref="DefaultEditItem"
      :form="form"
    />
  </div>
</template>
<script>
import DefaultEditItem from './DefaultEditItem'
import DefaultInfoItem from './DefaultInfoItem'

export default {
  components: {
    DefaultEditItem,
    DefaultInfoItem
  },
  props: {
    form: {
      type: Object
    },
    isShowSignInfo: {
      type: Boolean,
      default: true
    },
    isEdit: {
      type: Boolean,
      default: false
    },
    showJudge: {
      type: Boolean,
      default: false
    }
  },

  data () {
    return {
    }
  },
  computed: {
  },
  mounted () {
  },
  methods: {
    async valideForm () {
      return new Promise((resolve) => {
        resolve(this.$refs.DefaultEditItem.valideForm())
      })
    }
  }
}
</script>
